<template>
  <div class="app-container">
    <el-dialog  :title="title?title:'查看内容'"
                :close-on-click-modal="false"
                :append-to-body="true"
                :visible.sync="contentVisible">
      <div v-html="content"></div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "rich-preview",
  props: {
    content: {
      type: String,
      required: false
    },
    title:{
      type: String,
      required: false
    }
  },
  data() {
    return {
      contentVisible:false
    };
  },
  created() {
  },
  methods: {}
};
</script>
